package com.ftg.learn.chapter04;


/**
 * 卷子
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/5/20 上午8:54
 */
public class HomeWork1 {

    // 1 2 5  20  ...

//    0 - 4

    public static void main(String[] args) {
        int sum = 0;
        int index = 0;
        for (int i = 0, five = 5; i < five; i++) {
            sum = i * five;
            if(sum == 20){
                index++;
                continue;
            }
            for (int i1 = 0,second = 11; i1 < second; i1++) {
                //目标 20
                if((sum + i1 * 2) == 20){
                    index++;
                    continue;
                }
                for(int i2 = 1;i2 < 21;i2++){
                    if(sum + i1 * 2 + i2 ==20){
                        index++;
                        break;
                    }
                }
            }
        }
        System.out.println(index);
    }
}
// 双色球 3 6  1  30
// 1 32   200
